#include "DisplayModeSelectorViewport.hpp"
#include "DisplayModeButtonStyle.hpp"
#include "TableStyle.hpp"

#include <Wt/WText>
#include <Wt/WImage>
#include <Wt/WApplication>

webpages::windowboxes::DisplayModeSelectorViewport::DisplayModeSelectorViewport(Wt::WContainerWidget* parent)
    :
        WindowBox(parent),
        home_button("resources/button-show_chart.png"),
        realtime_display_button("resources/button-show_home.png")
{
    setStyleClass("view_mode_selector_cell_style");
    Wt::WApplication::instance()->styleSheet().addRule(new webpages::resources::ViewModeSelectorCellStyle);
    
    m_title.setText("Display Modes");
    
    Wt::WApplication::instance()->styleSheet().addRule(new webpages::resources::DisplayModeButtonStyle);

    home_button.setStyleClass("button-style");
    realtime_display_button.setStyleClass("button-style");
    
    m_display_area.addWidget(&realtime_display_button);
    m_display_area.addWidget(&home_button);
}
